/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.push.client;

import org.springframework.beans.factory.FactoryBean;

import com.foreveross.bsl.push.application.PushMgmtService;

/**
 * xxx
 *
 * @author Wangyi
 * @version v1.0
 *
 * @date 2013-7-29
 *
 */
public class PushMgmtServiceClientFactoryBean extends PushClient implements FactoryBean<PushMgmtService> {

	/* (non-Javadoc)
	 * @see org.springframework.beans.factory.FactoryBean#getObject()
	 */
	@Override
	public PushMgmtService getObject() throws Exception {
		PushMgmtService service=this.createServiceStub(getTargetUrl(), PushMgmtService.class);
		return service;
	}

	/* (non-Javadoc)
	 * @see org.springframework.beans.factory.FactoryBean#getObjectType()
	 */
	@Override
	public Class<?> getObjectType() {
		return PushMgmtService.class;
	}

	/* (non-Javadoc)
	 * @see org.springframework.beans.factory.FactoryBean#isSingleton()
	 */
	@Override
	public boolean isSingleton() {
		return true;
	}

}
